package com.travel.service.impl;

import com.travel.dao.TArticleDao;
import com.travel.entity.TArticle;
import com.travel.service.TArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TArticleServiceImpl implements TArticleService  {
    @Autowired
    TArticleDao tArticleDao;
    @Override
    public List<TArticle> queryUserTArticle(String userId) {
        return tArticleDao.queryUserTArticle(userId);
    }

    @Override
    public List<TArticle> queryAllTArticle() {
        return tArticleDao.queryAllTArticle();
    }

    @Override
    public List<TArticle> querylikeTArticle(String articleTitle) {
        return tArticleDao.querylikeTArticle(articleTitle);
    }
}
